package com.elong.qadev.entity;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
/**
 * 
* @ClassName: Log_HttpCase
* @Description: TODO(TASK运行基础CASE记录，REPORT数据来源)
* @author kangchen
* @date 2015年9月29日
*
 */
@Entity
@Table(name = "LOG_CASE", schema = "ti")
public class Log_Case {
	public Log_Case(int id, String taskBatchNumber, int caseId,
			String caseType, String caseName, boolean isExpected, String ower,
			Date startDate, Date endDate) {
		super();
		this.id = id;
		TaskBatchNumber = taskBatchNumber;
		this.caseId = caseId;
		this.caseType = caseType;
		this.caseName = caseName;
		this.isExpected = isExpected;
		this.ower = ower;
		this.startDate = startDate;
		this.endDate = endDate;
	}
	public Log_Case() {
		super();
		// TODO Auto-generated constructor stub
	}
	private int id;
	private String TaskBatchNumber;
	private int caseId;
	private String caseType;
	private String caseName;
	private boolean isExpected;
	private String ower;
	private Date startDate;
	private Date endDate;
	@Override
	public String toString() {
		return "Log_HttpCase [id=" + id + ", TaskBatchNumber="
				+ TaskBatchNumber + ", caseId=" + caseId + ", caseType="
				+ caseType + ", caseName=" + caseName + ", isExpected="
				+ isExpected + ", ower=" + ower + ", startDate=" + startDate
				+ ", endDate=" + endDate + "]";
	}
	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
    @Column(name = "ID", unique = true, nullable = false, length = 10)
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	@Column(name = "TASKBATCHNUMBER", nullable = true, length = 50)
	public String getTaskBatchNumber() {
		return TaskBatchNumber;
	}
	public void setTaskBatchNumber(String taskBatchNumber) {
		TaskBatchNumber = taskBatchNumber;
	}
	@Column(name = "CASEID", nullable = false, length = 50)
	public int getCaseId() {
		return caseId;
	}
	public void setCaseId(int caseId) {
		this.caseId = caseId;
	}
	@Column(name = "CASETYPE", nullable = true, length = 50)
	public String getCaseType() {
		return caseType;
	}
	public void setCaseType(String caseType) {
		this.caseType = caseType;
	}
	@Column(name = "CASENAME",nullable = true, length = 100)
	public String getCaseName() {
		return caseName;
	}
	public void setCaseName(String caseName) {
		this.caseName = caseName;
	}
	@Column(name = "ISEXPECTED",nullable = true)
    @org.hibernate.annotations.Type(type="yes_no")
	public boolean isExpected() {
		return isExpected;
	}
	public void setExpected(boolean isExpected) {
		this.isExpected = isExpected;
	}
	@Column(name = "OWER", nullable = true, length = 50)
	public String getOwer() {
		return ower;
	}
	public void setOwer(String ower) {
		this.ower = ower;
	}
	@Temporal(TemporalType.TIMESTAMP)
    @Column(name = "STARTDATE", length = 7)
	public Date getStartDate() {
		return startDate;
	}
	public void setStartDate(Date startDate) {
		this.startDate = startDate;
	}
	@Temporal(TemporalType.TIMESTAMP)
    @Column(name = "ENDDATE", length = 7)
	public Date getEndDate() {
		return endDate;
	}
	public void setEndDate(Date endDate) {
		this.endDate = endDate;
	}
	
}
